package com.xyoto.community.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;



/**
 * @author Administrator
 */
@Data
@ApiModel("查询热门话题DTO")
public class GetHotTopicDTO {

    @ApiModelProperty("分页查询DTO")
    @Valid
    private PageDTO pageDTO;

    /**
     * 初始化pageDTO对象便于进行参数校验
     */
    public GetHotTopicDTO(){
        this.pageDTO = new PageDTO();
    }

    @ApiModelProperty("话题名称搜索内容")
    private String title;
}
